<html>
<head>
    <title>透析助手</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.5.6/css/sm.min.css">
    <link rel="stylesheet" href="__PUBLIC__/css/style.css">
    <link rel="stylesheet" href="__PUBLIC__/css/5s.css">
    <link rel="stylesheet" href="__PUBLIC__/css/6m.css">
    <link rel="stylesheet" href="__PUBLIC__/css/iconfont.css">
</head>
<body>
	<div class="head">
		<div class="HeadContent">
			<a href="<{:U('lists')}>" class="backIndex"><i class="iconfont">&#xe605;</i></a>
			<a href="javascript:;" class="HeadTitle">个人信息</a>
		</div>
	</div>
	<div class="PersonalHead">
		<div class="PersonalHeadImg">
            <if condition="$vo['pic'] neq ''">
                <img src="<{$vo.pic}>" id="headImg" style="border-radius:50%;" />
            <else />
                <img src="__PUBLIC__/images/PersonalHeadImg.png" id="headImg" />
            </if>
		</div>
		<div class="PersonalName">
			<{$vo.name|default='匿名'}>  <{:$vo['sex']==2 ? '女' : '男'}>   <{$vo.htp_name}>
		</div>
		<div class="PersonalOperate">
            <if condition="$userInfo['uid'] eq $vo['id']">
                <a onclick="actLink(0)">取消关联</a>
			<a href="<{:U('Chat/Index/user',array('sender'=>$userInfo['phone'],'receiver'=>$vo['phone'],'name'=>$vo['name']))}>">对话</a>
            <else />
                <a onclick="actLink('<{$vo.id}>')">建立关联</a>
			<a href="javascript:void(0);" class="bgcolor-333333">对话</a>
            </if>
		</div>
	</div>
	<div class="PersonalInformation">
		<div class="PersonalInformationContent">
			<div class="PersonalInformationContentTitle">
				简介
			</div>
			<div class="PersonalInformationContentWord">
				<{$vo.des}>
			</div>
		</div>
		<div class="PersonalInformationContent">
			<div class="PersonalInformationContentTitle">
				发表论文
			</div>
			<div class="PersonalInformationContentWord">
				<{$vo.paper}>
			</div>
		</div>
	</div>
<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.5.7/js/sm.min.js' charset='utf-8'></script>
<script type='text/javascript' src='__PUBLIC__/js/myjq.js'></script>
<script>
    function actLink(uid){var msg = (uid == 0) ? '确定要取消关联此医生吗' : '您只能关联一位医生，确定要更改吗';
        if('<{$userInfo.uid}>' == '' ||　'<{$userInfo.uid}>' == '0') msg = '确定要关联此医生吗';
        if(confirm(msg)){
            $.post('<{:U("actLink")}>',{uid:uid},function(){
                location.reload();
            });
        }
    }
</script>
</body>
</html>